import request from '@/utils/request'

// 查询场站设备关联列表
export function listExtend(query) {
  return request({
    url: '/operator/extend/list',
    method: 'get',
    params: query
  })
}

// 查询场站设备关联详细
export function getExtend(deviceId) {
  return request({
    url: '/operator/extend/' + deviceId,
    method: 'get'
  })
}

// 新增场站设备关联
export function addExtend(data) {
  return request({
    url: '/operator/extend',
    method: 'post',
    data: data
  })
}

// 修改场站设备关联
export function updateExtend(data) {
  return request({
    url: '/operator/extend',
    method: 'put',
    data: data
  })
}

// 删除场站设备关联
export function delExtend(deviceId) {
  return request({
    url: '/operator/extend/' + deviceId,
    method: 'delete'
  })
}

// 导出场站设备关联
export function exportExtend(query) {
  return request({
    url: '/operator/extend/export',
    method: 'get',
    params: query
  })
}